package com.help.help.entity;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;

import lombok.Data;

/**
 * 
 * 
 * @author 小🌤
 * @email 1578442339@qq.com
 * @date 2021-01-07 15:41:11
 */
@Data
@TableName("address")
public class AddressEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * 主键
	 */
	@ExcelProperty("id") //设置表格的标题
	@TableId
	private Integer id;
	/**
	 * 地址
	 */
	@ExcelProperty("地址")
	private String address;
	/**
	 * 门票号
	 */
	@ExcelProperty("门牌号")
	private String detail;
	/**
	 * 逻辑删除
	 */
	@ExcelIgnore //过滤字段
	private Integer deleted;
	/**
	 * 用户id
	 */
	@ExcelProperty("用户id")
	private Integer userId;


	@ExcelIgnore
	@TableField(exist = false) // 注明非数据库字段属性
	private UserEntity userEntity;
}
